<!--public.less-->
<template lang="html">
	<div>
	<header id="header">
		<van-icon name="arrow-left" @click="go_back()" v-show='value.flat == 1' /> 
		<span>{{value.name}}</span>
	</header>
	<div style="height: 8vh;"></div>
	</div>
</template>
<script>
	import { Toast } from 'vant';
	export default {
		props: ['Title'],   //接受数据
	  // 数据
	  	data() {
		    return {
		      	value: {}
		    };
	  	},
	  	// 当数据发生改变时
	  	watch: {},
		// 方法
		methods: {
	    	go_back() {
	    		var _this = this;
		      	_this.$router.go(-1);         
		    },
		    onClickRight() {
		      	Toast.fail('点击返回');
		    },
	  	},
	  	// 路由发生变化时
	  	beforeRouteLeave (to, from, next) {
	    	var conent = this;
	    	next()
	  	},
	  	// 加载模块
	  	components:{},
	  	// 加载执行
	  	created:function(){ 
//	  		console.log(this.Title);
	  		this.value = this.Title;

	  	}
	};
</script>